import 'package:flutter/material.dart';

import '../global_config.dart';

class AskPage extends StatefulWidget {
  @override
  _AskPageState createState() => _AskPageState();
}

class _AskPageState extends State<AskPage> {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      theme: GlobalConfig.themeData,
      home: new Scaffold(
        appBar: new AppBar(
          title: new Container(
            child: new Row(
              children: <Widget>[
                new FlatButton.icon(
                  onPressed: () {
                    Navigator.of(context).pop();
                  },
                  icon: new Icon(Icons.clear, color: Colors.white70),
                  label: new Text(""),
                ),
                new Expanded(
                    child: new Container(
                  child: new Text("提问"),
                )),
                new FlatButton(
                    onPressed: () {},
                    child: new Text("下一步",
                        style: new TextStyle(color: Colors.white12)))
              ],
            ),
          ),
        ),
        body: new ListView(
          children: <Widget>[
            new Container(
              margin: const EdgeInsets.symmetric(horizontal: 16.0),
              child: new TextField(
                autofocus: false,
                decoration: new InputDecoration(
                    hintText: "请输入标题",
                    hintStyle: new TextStyle(color: Colors.white70)),
              ),
            )
          ],
        ),
      ),
    );
  }
}
